﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SaleOnlineSystem.Controls
{
    public partial class BoxHeader : System.Web.UI.UserControl
    {
        public string header1;
        public string header2;
        public string header3;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                DataTable dt = DAL.DCollector.DBCollector.Instance.StoredProcedureSelectByColumns("tbl_Header", " * ", "selectbycolumns");
                header1 = dt.Rows[0]["Header_Name1"].ToString();
                header2 = dt.Rows[0]["Header_Name2"].ToString();
                header3 = dt.Rows[0]["Header_Name3"].ToString();

            }
        }
    }
}